<template>
    <div class="home">
        <el-button type="info" @click="logout"> 退出</el-button>
    </div>
</template>

<script>
    export default {

        components: {},

        data() {
            return {};
        },

        methods: {
            logout(){
                window.sessionStorage.clear();
//                window.sessionStorage.removeItem("token");
                this.$router.push("/login")
            }
        },
    };
</script>
<style lang="scss" type="text/scss" scoped>

</style>
